Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-04 23:59:03.382235
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 135.02612590789795 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54414d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:01:32.208013
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 134.67200994491577 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5503350>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:04:02.344081
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 133.0159614086151 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d03d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:06:32.190732
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 131.64983344078064 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5490430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:09:03.340669
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 134.09726691246033 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5426490>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:11:32.124063
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 133.79433512687683 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f84f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:14:03.123717
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 131.27543783187866 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54584d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:16:32.680677
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 130.19982433319092 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b7550>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:19:03.171286
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 133.30894446372986 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54804b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:21:32.501698
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 132.45662307739258 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c13f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:24:02.670263
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 130.77728033065796 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ce530>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:26:32.227022
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 134.8118760585785 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c6330>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:29:03.560880
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 131.95861911773682 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7470>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:31:32.192640
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 131.80574440956116 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55014b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:34:03.301226
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 134.2972960472107 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a7b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:36:32.058234
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 134.02220392227173 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54394d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:39:03.563247
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 130.99502396583557 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545f510>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:41:32.012786
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 131.0254201889038 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544b350>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:44:03.276311
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31052026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02062026
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03062026
  port_id : 31043936
  datou_current_id : 4379318
in upload_from_sqlite, uploading in 31043936
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260516 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260517 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260518 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260519 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260520 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260521 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260522 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260523 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260524 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260525 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260526 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260527 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260528 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260529 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260530 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260531 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260601 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260602 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260603 ORDER BY id_local DESC LIMIT 6;
in upload media
 Upload medias :  ['/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg', '/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg', '/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg', '/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg', '/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg', '/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=4379318&datou=0
/home/pi/Desktop/images/03062026/23/45/image_03062026_23_46_06_60091.jpg
/home/pi/Desktop/images/03062026/22/05/image_03062026_22_06_06_60022.jpg
/home/pi/Desktop/images/03062026/20/25/image_03062026_20_26_05_58989.jpg
/home/pi/Desktop/images/03062026/18/45/image_03062026_18_46_05_59624.jpg
/home/pi/Desktop/images/03062026/17/05/image_03062026_17_06_06_59900.jpg
/home/pi/Desktop/images/03062026/15/25/image_03062026_15_26_06_60086.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
cannot unpack non-iterable int object
time to upload: 133.36447978019714 secondes ---
ERROR IN API l 184 HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a04b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:46:31.772561
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54acb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:49:03.117311
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5495a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:51:32.613176
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543f970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543f970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543f970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:54:02.589587
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:56:32.440313
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 00:58:03.113948
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5451a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5451a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5451a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:00:31.857921
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547aad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:03:03.103402
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5477b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:05:32.977045
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545bb90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545bb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545bb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:08:02.794756
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:10:31.764551
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:13:02.936893
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5507a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5507a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5507a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:15:32.716189
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546eb90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546eb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546eb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:18:02.537681
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:20:32.463125
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54efb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:23:02.566879
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546fa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546fa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546fa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:25:32.313058
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:28:03.018680
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ddad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ddad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ddad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:30:31.855448
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549caf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:33:02.962810
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e3b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:35:32.601839
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543cab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:38:02.514482
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5467b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:40:32.450494
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5456a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:43:02.525008
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54acb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:45:32.212363
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544fb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:48:03.008229
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543da90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543da90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543da90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:50:32.037951
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:53:03.041570
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ba90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ba90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ba90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:55:32.748534
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d4a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 01:58:02.554164
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:00:32.711599
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:03:02.806395
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:05:32.686530
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:08:02.577767
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:10:32.579627
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e7af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:13:02.598898
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5495b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:15:32.349441
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:18:02.407337
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:20:32.226110
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551cab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:23:02.611234
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:25:32.235583
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e9a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:28:03.231498
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:30:32.128020
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:33:03.108043
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545f9d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545f9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545f9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:35:31.745198
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544ea10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544ea10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544ea10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:38:02.641238
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54baa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:40:32.550626
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5454b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:43:02.704635
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:45:32.399475
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547c970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547c970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547c970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:48:02.139318
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5533b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5533b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5533b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:50:32.008430
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5511a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:53:03.215755
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5524b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:55:32.736226
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5480ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5480ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5480ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 02:58:02.734944
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:00:31.710929
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a4ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a4ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a4ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:03:02.642836
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a69f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:05:32.609285
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d3990>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d3990>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d3990>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:08:02.496213
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543aa30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543aa30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543aa30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:10:32.356079
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5500b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:13:02.628606
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5512ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5512ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5512ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:15:32.169401
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5442b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:18:03.084170
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5438630>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5438630>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5438630>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:20:31.869902
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5461ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:23:02.816933
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ab50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ab50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ab50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:25:32.717369
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5477ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:28:02.554755
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:30:32.498788
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:33:02.614034
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544cab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:35:32.387538
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ceaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ceaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ceaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:38:02.168461
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b09d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:40:32.217029
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548ca90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:43:03.260114
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5461b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:45:31.855803
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:48:02.818398
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:50:32.629007
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:53:02.761084
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547aa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:55:32.604901
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5535a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 03:58:02.493636
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:00:32.441674
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5441ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:03:02.540223
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:05:32.213108
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545baf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545baf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545baf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:08:03.086571
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c6ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c6ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c6ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:10:31.971500
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5463950>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463950>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:13:02.966536
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549fab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:15:32.667425
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551fa70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551fa70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551fa70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:18:02.740818
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f4a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:20:32.628716
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:23:02.674489
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:25:32.410004
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cbab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:28:02.271798
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e8a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e8a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e8a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:30:32.253761
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5439a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5439a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5439a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:33:03.382943
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cc970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:35:31.936815
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5476a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5476a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5476a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:38:02.844290
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a1a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:40:32.731501
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549eb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549eb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549eb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:43:02.976582
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549aa70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:45:32.566705
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5491b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5491b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5491b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:48:02.711406
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551f950>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551f950>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551f950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:50:32.384782
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c8a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c8a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c8a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:53:02.547229
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:55:32.136148
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 04:59:02.866022
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:01:32.332012
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546cab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:04:02.430212
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543caf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:06:32.091293
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549da50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549da50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549da50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:09:03.425868
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5441af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:11:31.795971
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544ea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:14:02.820364
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5481af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5481af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5481af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:16:32.680516
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550da70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550da70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550da70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:19:03.400393
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5468a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:21:32.750500
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ab30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:24:02.603848
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:26:32.555412
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:29:02.995480
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cdad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cdad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cdad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:31:32.454363
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5503ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5503ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5503ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:34:02.589208
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:36:32.341583
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54aea70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54aea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54aea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:39:03.748587
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:41:31.985726
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:44:03.128700
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5531a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:46:31.948963
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5463bd0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:49:03.171131
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550bad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:51:32.494960
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:54:02.537071
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546ea10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546ea10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546ea10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:56:32.177349
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 05:58:02.909716
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5519a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:00:32.341517
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:03:02.634414
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c3ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:05:32.340807
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54efa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:08:03.122963
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:10:32.140022
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5442af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:13:02.981512
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543ca90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:15:31.983825
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543fab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543fab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543fab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:18:02.803953
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5498a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5498a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5498a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:20:31.834343
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545bad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:23:02.934890
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54beb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54beb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54beb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:25:32.680808
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:28:02.648195
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54faad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54faad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54faad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:30:32.760998
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:33:02.996985
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:35:32.366351
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5530af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5530af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5530af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:38:02.500920
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:40:32.251152
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b39b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b39b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b39b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:43:03.453854
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f2b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:45:31.793882
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:48:02.931031
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5533ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5533ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5533ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:50:32.708835
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5467ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:53:03.295927
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:55:32.516424
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 06:58:31.939590
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5466a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:01:03.428154
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5500a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:03:32.683135
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5471ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:06:02.805852
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547d9b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547d9b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547d9b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:08:32.624176
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5456a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:11:02.997816
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552db30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552db30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552db30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:13:32.189661
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:16:03.265604
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547cab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547cab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:18:31.915740
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54fcb70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fcb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fcb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:21:03.491565
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5504af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:23:32.032935
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5500ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:26:03.114292
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5440af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5440af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5440af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:28:32.010062
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bfa50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfa50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfa50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:31:03.309791
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f3b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:33:31.946152
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d2b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:36:03.072839
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549fb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:38:31.854197
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552bb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552bb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552bb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:41:03.264011
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:43:31.833516
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5459a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5459a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5459a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:46:02.830209
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e9b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e9b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e9b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:48:32.568358
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5453b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5453b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5453b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:51:03.032652
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b5b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b5b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b5b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:53:32.465913
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5472ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:56:02.466446
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 07:58:02.874635
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545a970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545a970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545a970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:00:32.490893
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550bab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:03:02.855850
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ecad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ecad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ecad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:05:32.474514
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:08:02.519828
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5458b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5458b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5458b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:10:32.213062
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54eba30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54eba30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54eba30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:13:03.590775
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5455a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5455a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5455a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:15:31.976178
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:18:02.947042
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552aab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:20:31.931463
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5517b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5517b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5517b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:23:03.298989
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5448a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5448a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5448a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:25:32.791487
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:28:02.966843
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5523ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:30:32.547666
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f2af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f2af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f2af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:33:03.054210
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5531ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:35:32.375993
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5437b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5437b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5437b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:38:02.390373
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5472b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:40:32.178283
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5516af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5516af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5516af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:43:03.472255
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a3b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:45:32.071096
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5525970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5525970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5525970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:48:03.219828
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5442a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:50:32.036694
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5441b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:53:03.558137
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550cb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:55:32.004299
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54fda90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fda90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fda90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 08:58:03.135696
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54559f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54559f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54559f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:00:32.551465
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c7950>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7950>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:03:02.941857
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549ca90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:05:32.497634
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:08:02.712421
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d5af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:10:32.329458
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5491b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5491b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5491b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:13:02.522466
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f6b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:15:32.248672
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5536a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:18:03.389031
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5489af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:20:32.100816
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:23:03.512102
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551ea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:25:32.005448
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5534ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5534ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5534ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:28:03.273429
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5458a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5458a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5458a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:30:31.959226
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:33:03.314790
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:35:31.812904
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:38:02.908834
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ca70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:40:32.772932
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a69b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:43:02.978398
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5489a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:45:32.607340
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5467b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:48:02.671290
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f0ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f0ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f0ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:50:32.278969
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5528b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5528b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5528b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:53:02.471183
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bab10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:55:32.143184
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 09:58:03.251154
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5474b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:00:32.000343
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5530ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5530ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5530ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:03:03.287713
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:05:31.918446
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:08:02.960693
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5481bd0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5481bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5481bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:10:32.669042
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550fb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:13:02.903478
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:15:32.263838
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545caf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:18:03.396222
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5494b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5494b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5494b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:20:32.001718
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:23:03.480589
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:25:31.733467
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5517bb0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5517bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5517bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:28:02.874998
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543ab30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:30:32.564983
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b4a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:33:02.821644
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5474b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:35:32.410341
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5522a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5522a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5522a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:38:02.611006
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d0af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d0af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d0af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:40:32.399577
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5449b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5449b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5449b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:43:02.649345
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:45:32.252363
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c5bd0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:48:03.169327
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544db50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544db50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544db50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:50:31.859100
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5504b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:53:03.058169
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:55:32.564350
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54dfb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dfb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dfb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 10:59:03.340387
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548aab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:01:32.771266
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:04:02.949970
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a5af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:06:32.516833
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544cb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:09:03.109913
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54fdb70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fdb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fdb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:11:32.303172
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5450b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:14:02.869524
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5450af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:16:32.364255
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:19:02.894716
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5504b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:21:32.107103
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:24:03.570853
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5485ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5485ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5485ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:26:31.968631
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f59f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f59f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f59f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:29:03.698317
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548bbb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:31:31.714181
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c2b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:34:03.253690
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5451b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5451b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5451b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:36:32.683525
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5467af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5467af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:39:03.063265
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545da90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545da90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545da90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:41:32.455393
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ceb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ceb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ceb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:44:02.621742
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544fa90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544fa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544fa90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:46:32.434631
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d1b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d1b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d1b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:49:03.004338
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550bb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:51:32.294155
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ccb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:54:03.573089
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:56:32.051877
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 11:59:03.683171
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e1b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:01:31.824300
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5456ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5456ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:04:03.257682
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549daf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549daf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549daf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:06:31.774745
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550aab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:09:03.582354
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5450b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:11:32.631787
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c8b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c8b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c8b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:14:02.855265
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552bb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:16:32.484947
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:19:03.030353
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:21:32.187974
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5525b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5525b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5525b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:24:03.792170
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:26:31.943050
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:29:03.671645
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b6bb0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b6bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b6bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:31:32.752641
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cfa10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cfa10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cfa10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:34:03.197056
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:36:32.475992
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55079d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:39:03.025594
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:41:32.385461
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a6b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:44:02.979333
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ab50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ab50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ab50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:46:32.241381
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:49:03.755697
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:51:32.107079
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5487a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5487a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5487a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:54:03.772996
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5524a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:56:32.116901
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 12:58:02.911413
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5492b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5492b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5492b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:00:32.063936
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ba970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:03:03.440541
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5450a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:05:31.887924
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550cad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:08:02.992426
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54beab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54beab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54beab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:10:32.915394
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551ab10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:13:03.069106
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545ab30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545ab30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:15:32.628530
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54dbaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dbaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dbaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:18:02.734415
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5469a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5469a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5469a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:20:32.450200
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54dfab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dfab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dfab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:23:02.863405
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cec30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cec30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cec30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:25:32.143435
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543ead0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543ead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:28:03.125973
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5473b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:30:31.797683
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5466ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:33:03.070551
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e7b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:35:32.709780
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548b990>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548b990>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548b990>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:38:02.754092
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545eb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:40:32.529975
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d6a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:43:02.836979
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5445b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5445b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5445b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:45:32.490222
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:48:02.422355
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e6b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:50:32.000700
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548daf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548daf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548daf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:53:03.365438
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5520b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5520b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5520b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:55:31.842813
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5482ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5482ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5482ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 13:58:03.118274
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5442a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:00:32.621060
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c7b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:03:03.159175
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:05:32.776556
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5473bb0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:08:02.925468
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:10:32.631007
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:13:02.663936
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:15:32.454144
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55039f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:18:02.711996
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5499a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5499a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5499a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:20:32.208921
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550cb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:23:03.586176
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5472a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5472a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:25:32.060278
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5447a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5447a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5447a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:28:03.131007
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c6a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:30:32.016086
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5454b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:33:03.308396
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5461ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:35:32.769478
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:38:02.752009
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:40:32.292888
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f0b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f0b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f0b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:43:02.531420
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:45:32.177976
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5457b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5457b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5457b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:48:03.137092
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:50:31.833207
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ba70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:53:03.326023
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54abb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54abb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54abb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:55:32.701075
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 14:58:02.853185
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550baf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550baf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550baf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:00:32.801736
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5447af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5447af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5447af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:03:03.092450
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ab10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:05:32.566783
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54eea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:08:02.668082
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552aaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:10:32.057089
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548ab10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ab10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:13:03.565136
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55009b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55009b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55009b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:15:31.895717
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5506a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5506a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5506a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:18:02.975384
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d0ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d0ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d0ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:20:32.513259
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545db30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545db30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545db30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:23:02.906100
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5485b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5485b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5485b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:25:32.390887
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e0b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e0b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e0b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:28:02.348886
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a2ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a2ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a2ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:30:32.237417
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f6b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:33:03.636518
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:35:32.131430
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c5b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c5b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:38:03.221245
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549bb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:40:31.768377
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54819d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54819d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54819d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:43:03.120754
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b0b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b0b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b0b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:45:32.555157
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54efb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:48:02.542642
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b0b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b0b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b0b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:50:32.286954
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54acaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54acaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:53:02.621346
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:55:32.141080
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548ea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 15:58:03.232260
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5461990>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461990>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5461990>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:00:31.769144
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5473ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:03:03.108388
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:05:32.672487
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e5af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:08:02.821402
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546aab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546aab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:10:32.386393
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cbb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:13:02.746801
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5478ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5478ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5478ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:15:32.056317
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5515af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:18:03.018385
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54abb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54abb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54abb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:20:32.550284
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:23:02.950495
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5513bd0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513bd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:25:32.399499
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f4a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:28:02.381894
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54fbad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fbad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fbad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:30:32.294104
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:33:03.505082
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d2b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:35:32.054191
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5457b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5457b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5457b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:38:03.138879
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a8af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:40:32.049588
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cf9b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:43:03.245833
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5513b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:45:32.737260
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5519b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:48:02.816731
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55339d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55339d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55339d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:50:32.593654
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e2b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:53:02.998374
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cc9d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cc9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cc9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:55:32.656405
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c9af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c9af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 16:58:02.928515
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f1a30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f1a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f1a30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:00:32.679178
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:03:02.943590
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cab70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:05:32.378623
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5483a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5483a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5483a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:08:02.726615
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548cb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:10:32.343942
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55279f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:13:02.737636
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5524a70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524a70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:15:32.114196
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547aa30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aa30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547aa30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:18:03.307680
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551bad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:20:31.869455
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5511a10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5511a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5511a10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:23:03.220356
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a5b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a5b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a5b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:25:32.717779
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5464ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5464ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5464ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:28:02.855540
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:30:32.415529
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f4650>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4650>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4650>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:33:02.985594
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5523b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:35:32.248406
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a8b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a8b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:38:02.438493
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5488b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5488b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5488b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:40:32.354460
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5463a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5463a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:43:02.791700
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543d9f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543d9f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543d9f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:45:32.438678
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54afb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54afb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54afb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:48:02.597245
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb549fb70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb549fb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:50:32.312701
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b4950>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4950>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4950>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:53:02.589645
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546cb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:55:32.431858
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54fdab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fdab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54fdab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 17:58:02.401650
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c0b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c0b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c0b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:00:31.885129
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cdb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cdb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cdb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:03:03.177353
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5523b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:05:31.812250
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:08:02.773061
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e1970>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:10:32.514928
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5462ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5462ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5462ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:13:03.045180
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5441b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5441b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:15:32.522569
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:18:02.684648
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5477b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5477b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:20:32.682898
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5524b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:23:02.958173
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ebb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ebb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ebb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:25:32.284408
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b8b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:28:02.570016
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e5a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:30:32.239577
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5444ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:33:03.427855
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5460b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:35:31.966293
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547bb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547bb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:38:03.266608
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5508b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5508b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5508b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:40:32.803341
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b4a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b4a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:43:03.290624
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5519af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:45:31.878196
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a1b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a1b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:48:03.132331
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d1b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d1b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d1b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:50:32.006695
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5513b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5513b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:53:03.577989
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:55:31.949750
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5446b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5446b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5446b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 18:58:03.209043
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546cbd0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cbd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cbd0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:00:32.190535
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:03:02.652771
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54dcad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dcad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54dcad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:05:32.234691
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551cb70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551cb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551cb70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:08:02.494692
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a9b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:10:32.281356
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547ea30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547ea30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547ea30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:13:02.608499
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5519ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:15:32.271803
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550fb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550fb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550fb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:18:02.446462
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54aea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54aea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54aea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:20:32.122321
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5505a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5505a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5505a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:23:03.582366
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545eaf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:25:31.904392
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5495b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5495b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:28:02.990432
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5521ef0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:30:32.797947
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5514f90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:33:03.385243
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5516b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:35:32.543076
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb54a3eb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:38:02.730615
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5479af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5479af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5479af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:41:32.565118
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cbb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cbb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:44:03.111173
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f4b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f4b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:46:32.444692
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb550ca50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:49:03.095604
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c2b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:51:32.224125
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5504b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5504b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:54:03.609997
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a6b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a6b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:56:32.050062
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 19:58:02.839207
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552caf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552caf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:00:32.800814
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547ca90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:03:03.212395
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:05:32.536323
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5483ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5483ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5483ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:08:02.615539
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cd9f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:10:32.348109
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5475b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5475b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5475b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:13:02.710424
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54efb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54efb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:15:32.228009
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e7b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e7b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:18:02.459294
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551c930>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551c930>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551c930>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:20:32.021460
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5468b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:23:03.544430
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a2b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a2b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a2b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:25:32.287835
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54cead0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54cead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:28:03.446173
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5465b90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5465b90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:30:32.062185
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5532ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:33:03.130311
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548bad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548bad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:35:32.853072
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:38:02.965500
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b7af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b7af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b7af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:40:32.495524
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5527990>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527990>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5527990>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:43:02.919923
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c7b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c7b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:45:32.221676
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543fb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543fb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:48:03.387061
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ea90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:50:31.870886
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548eb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:53:03.034667
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d7ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d7ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d7ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:55:32.737783
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5453b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5453b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5453b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 20:59:03.192269
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb544eb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb544eb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:01:32.243500
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54de710>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54de710>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54de710>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:04:03.516763
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5443af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5443af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5443af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:06:32.000363
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5518ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:09:03.547577
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54f6b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54f6b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:11:31.732908
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545da30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545da30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545da30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:14:03.118270
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54e5bb0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54e5bb0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:16:32.669476
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bcb10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bcb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bcb10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:19:03.234733
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55359f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:21:32.427423
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546cb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546cb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:24:02.622349
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb546ca90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb546ca90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:26:32.026748
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5503b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5503b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5503b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:29:03.368369
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ead0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ead0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:31:31.805645
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb545fb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545fb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb545fb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:34:03.205462
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54edad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54edad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54edad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:36:32.691287
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5442ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5442ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:39:03.180305
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54adb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54adb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54adb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:41:32.630896
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c3b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c3b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c3b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:44:02.840410
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bfb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bfb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:46:32.235592
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54daad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:49:02.976963
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5508ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5508ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5508ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:51:32.179400
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5484b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:54:03.818642
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5468ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5468ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:56:32.120249
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 21:58:32.603101
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5492b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5492b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5492b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:01:03.052063
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5499ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5499ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5499ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:03:32.651977
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5505af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5505af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5505af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:06:02.786948
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5469b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5469b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5469b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:08:32.486570
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb547db70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547db70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb547db70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:11:02.928118
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551faf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551faf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551faf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:13:32.251589
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54d8af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:16:02.753445
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552dab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:18:32.316235
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54bea70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54bea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:21:02.922921
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c0a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:23:32.292780
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b8ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:26:03.342809
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552fb50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:28:32.045121
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a9b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a9b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:31:03.358297
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543bb30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543bb30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:33:31.814645
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a3b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a3b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:36:02.825049
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c4b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c4b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c4b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:38:32.593784
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb548ab70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb548ab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:41:02.856296
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb551ab70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb551ab70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:43:32.433127
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5490b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5490b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5490b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:46:02.688747
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54c2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54c2ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:48:32.402863
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5473af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5473af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:51:02.862320
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5500a50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5500a50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:53:32.200841
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54a0b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a0b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54a0b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:56:02.425556
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 22:59:03.530460
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ef9d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ef9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ef9d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:01:32.261996
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54deab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:04:03.141645
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54ebb90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ebb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54ebb90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:06:32.161483
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5445af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5445af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5445af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:09:03.516005
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5520ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5520ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5520ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:11:32.100427
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5443b30>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5443b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5443b30>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:14:03.301555
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5523ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5523ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:16:31.975679
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55349f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:19:03.364578
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552ea70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:21:31.823086
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5454af0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5454af0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:24:02.910561
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb55069f0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55069f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb55069f0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:26:32.686319
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb54b5b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b5b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb54b5b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:29:02.916821
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5474ad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:31:32.542807
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5535b50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5535b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5535b50>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:34:02.606514
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5489b10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:36:32.389985
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5452a90>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5452a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5452a90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:39:02.775794
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb543dad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:41:32.252803
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5514ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:44:03.184157
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5534b70>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5534b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5534b70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:46:31.917570
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5455ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5455ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5455ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:49:03.433891
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552cad0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552cad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552cad0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:51:31.834666
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5502ab0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5502ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5502ab0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:54:03.076546
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20260605 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 340, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 412, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb552cbf0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552cbf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 631, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 247, in resolve_redirects
    **adapter_kwargs
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb552cbf0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:56:32.743321
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Raspi_test2 -u marlene.fotonower.com -f /home/pi/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/pi/.fotonower_config/sqlite.db
2026-06-05 23:58:02.635463
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : Raspi_test2_05062026
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
